package zuoye1;

public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始");
        try {
            String line="";
            String line1=null;
            //System.out.println(line.length());
            System.out.println(line1.charAt(1));
            return ;
        }catch (Exception e) {
            e.printStackTrace();
            System.out.println("空指针");
        }/*finally {
            System.out.println("程序终止");
        }*/
        System.out.println("程序结束");
    }
}
